root {
    --primary-color: #1e88e5;
    --secondary-color: #263238;
    --danger-color: #e53935;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
}

.container {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: 70px 1fr;
    min-height: 100vh;
}

.header {
    grid-column: 1 / 3;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar {
    background: var(--secondary-color);
    color: white;
    padding-top: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar li:hover {
    background: #37474f;
}

.sidebar li.active {
    background: #37474f;
    border-left: 4px solid var(--primary-color);
}

.main-content {
    padding: 25px;
    overflow-y: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 18px;
}

.card .value {
    font-size: 28px;
    font-weight: bold;
}

.water-level .value { color: #2196f3; }
.flow-rate .value { color: #4caf50; }
.weather .value { color: #ff9800; }

.alert {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background: #fff3e0;
    border-left: 4px solid #ffa000;
}

